<template>
	<view>
		<!-- 跳转 tabbar -->
		<navigator url="/pages/home/home" open-type="switchTab">去首页</navigator>
		<button @click="toHome">去首页</button>
		<!-- 跳转非tabbar -->
		<navigator url="/pages/qwer/qwer" open-type="navigate">去 qwer 页面</navigator>
		<button @click="toQwer">去qwer页面</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			toHome() {
				uni.switchTab({
					url: '/pages/home/home'
				})
			},
			toQwer() {
				uni.navigateTo({
					url: '/pages/qwer/qwer'
				})
			}
		}
	}
</script>

<style>

</style>
